package com.bwie.mq;

import com.bwie.pojo.po.UserPo;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @className: MessageProduce
 * @Description: TODO
 * @version: v1.８.0
 * @author: 杜林涛
 * @date: 2025/6/11 12:17
 */
@Component
public class MessageProduce {
    @Autowired
    AmqpTemplate amqpTemplate;
    public void send(UserPo userPo){
        amqpTemplate.convertAndSend("2204akey",userPo);
    }

}
